package com.basics.operator;

public class OperatorDemo4 {
    public static void main(String[] args) {
        //需求：理解关系运算符
        print(10, 20);
    }

    //设计一个方法，接受两个整数，然后比较大小
    public static void print(int a, int b) {
        System.out.println(a > b);//false
        System.out.println(a < b);//true
        System.out.println(a == b);//false
        System.out.println(a != b);//true
        System.out.println(a >= b);//false
        System.out.println(a <= b);//true
    }
}
